<template>
    <div id="container" style="width: 100%;min-height: 200px;flex: 1;height: 100%"></div>
</template>
<script setup>
import {ref, onMounted} from 'vue' // vue相关方法
onMounted(() => {
    initMap();
})
function initMap() {
    var map = new BMap.Map('container')
    var point = new BMap.Point(116.404, 39.915)
    map.centerAndZoom(point, 15)
    map.enableScrollWheelZoom(true)
}
</script>
<style scoped>
</style>
